]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
message-tray: Add :overview pseudo class when in overview
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 31 Jul 2012 14:10:24 +0000 (16:10 +0200)
committerJasper St. Pierre <jstpierre@mecheye.net>
Sun, 19 Aug 2012 22:41:50 +0000 (18:41 -0400)
The designers would like the message-tray to use different styles
depending on whether it is shown in the overview or not, so use
an :overview pseudo class as the top bar.

js/ui/messageTray.js

index cf7afe09db6c771ce3c3cc1a925b272dd39ed844..21d09bf195dcb98ae6509234c4c23c611df3fa44 100644 (file)
@@ -1550,6 +1550,7 @@ const MessageTray = new Lang.Class({
         Main.overview.connect('showing', Lang.bind(this,
             function() {
                 this._overviewVisible = true;
+                this.actor.add_style_pseudo_class('overview');
                 if (this._locked) {
                     this._unsetClickedSummaryItem();
                     this._unlock();
@@ -1560,6 +1561,7 @@ const MessageTray = new Lang.Class({
         Main.overview.connect('hiding', Lang.bind(this,
             function() {
                 this._overviewVisible = false;
+                this.actor.remove_style_pseudo_class('overview');
                 if (this._locked) {
                     this._unsetClickedSummaryItem();
                     this._unlock();